<%- include('../../common/header.html',{css:'no-common'}) %>
<%- include('../../common/script-validation.html') %>
<%- include('../../common/layer.html') %>
<style>
    .datepicker {
        z-index: 9999 !important;
    }

    .data-select {
        display: inline-block !important;
        width: auto !important;
        position: relative;
        top: -1px;
    }
</style>
<script id="to-template" type="application/xhtml+xml">
    <form class='form-horizontal ' id="to-user">
        <div class="form-group">
            <div class="col-sm-12">
                <div class="alert alert-danger" style="margin-bottom:0;font-size: 12px;">此操作审核后不可修改，请慎重操作!</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">业务员：</label>
            <div class="col-sm-4">
                <input type="hidden" name="id" value="<$=id$>"/>
                <select name='salesMan'
                        class="form-control form-control-inline"
                        data-size="auto"
                        data-width="fit"
                        data-live-search="true"
                        title="选择业务员"
                >
                    <$
                    sales.map(function(item){
                    if(item.id!=1){
                    $>
                    <option value="<$=item.id $>">
                        <
                        $=item.name$>
                    </option>
                    <
                    $}})$>
                </select>
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-4">
                <button type="submit"
                        data-loading-text="处理中..."
                        class="btn btn-primary btn-update-actual-price">提交
                </button>
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
    </form>

</script>
<script id="bill-template" type="application/xhtml+xml">
    <table class="table table-border">
        <tr>
            <td>发货单号</td>
            <td>发货数量</td>
            <td>车号/收货公司</td>
            <td>实提数量</td>
        </tr>
        <
        $
        data.map(function(item){
        $>
        <tr>
            <td>
                <
                $=item.no $>
            </td>
            <td>
                <
                $=item.number $>
            </td>
            <td>
                <
                $=item.carId $>
            </td>
            <td>
                <
                $=item.actual $>
            </td>
        </tr>
        <
        $})
        $>

    </table>

</script>

<script id="actual-price-template" type="text/x-handlebars-template">
    <form class='form-horizontal form-update-actual-price'>
        <div class="form-group">
            <div class="col-sm-12">
                <div class="alert alert-danger" style="margin-bottom:0;font-size: 12px;">请慎重填写!</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">免费仓储期：</label>
            <div class="col-sm-4">
                <input type="text" data-rule-required="true" style="display:inline-block;width:80%;" name="freeStoreDay"
                       class="form-control"> 天
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">订单价格：</label>
            <div class="col-sm-4">
                <input type="number" data-rule-required="true" name="actualPrice" class="form-control hp-refuse">
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">交货日期：</label>
            <div class="col-sm-4">
                <input type="text" data-rule-required="true" name="deliveryDay" class="form-control">
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">付款日期：</label>
            <div class="col-sm-4">
                <input type="text" data-rule-required="true" name="payDate" class="form-control">
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"></label>
            <div class="col-sm-4">
                <button type="submit"
                        data-loading-text="处理中..."
                        class="btn btn-primary btn-update-actual-price">提交
                </button>
            </div>
            <div class="col-sm-5 error-container"></div>
        </div>
    </form>

</script>
<script id="lading-bill-template" type="text/x-handlebars-template">
    <div class="container" style="width: 100%;">
        <form class='form-horizontal create-lading-bill'>
            <div class="row" style="height:500px;">
                <div class="col-sm-5" style="padding:0px;width:350px;">
                    <div class="panel panel-default">
                        <div class="panel-heading" style="position:relative;">订单基本信息
                        </div>
                        <div class="table-responsive" style="overflow-x:hidden;">
                            <table class="table table-vstriped" style="width:350px;">
                                <tr>
                                    <td>客户名称</td>
                                    <td>：<span class="clienteleName">上海海鹏化工科技有限公司</span></td>
                                </tr>
                                <tr>
                                    <td>联系人</td>
                                    <td>：<span class="clientelePerson"></span></td>
                                </tr>
                                <tr>
                                    <td>联系电话</td>
                                    <td>：<span class="clientelePhone"></span></td>
                                </tr>
                                <tr>
                                    <td>货物名称</td>
                                    <td>：<span class="goodsName"></span></td>
                                </tr>
                                <tr>
                                    <td>数量单位</td>
                                    <td>：<span class="unit"></span></td>
                                </tr>
                                <tr>
                                    <td>提单类型</td>
                                    <td>
                                        <div class="lading-bill-types">
                                            <label class="radio-inline">
                                                <input type="radio" name="type" checked
                                                       value="0">
                                                车号</label>
                                            <label class="radio-inline">
                                                <input type="radio"
                                                       name="type"
                                                       value="1">
                                                介绍信
                                            </label>
                                            <label class="radio-inline">
                                                <input type="radio" name="type"
                                                       value="2">
                                                转货权</label>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td><span class="carId">车号</span></td>
                                    <td><input class="form-control carId-input" data-rule-required="true"
                                               placeholder="车号" name="carId"></td>
                                </tr>
                                <tr>
                                    <td><span class="driver">司机姓名</span></td>
                                    <td><input class="form-control driver-input" placeholder="司机姓名" name="driver">
                                    </td>
                                </tr>
                                <tr>
                                    <td><span class="driverPhone">司机电话</span></td>
                                    <td><input class="form-control driverPhone-input" placeholder="司机电话"
                                               name="driverPhone">
                                    </td>
                                </tr>
                                <tr>
                                    <td>本次发货数量</td>
                                    <td><input disabled value="0" class="form-control" name="numberThisTime"></td>
                                </tr>
                                <tr>
                                    <td>提单有效期</td>
                                    <td>
                                        <input class="form-control input-date" data-rule-required='true'

                                               placeholder="提单有效期"
                                               data-rule-required='true' name="expireTime">
                                    </td>
                                </tr>
                                <tr>
                                    <td>提货地</td>
                                    <td style="position:relative">
                                        <input class="form-control "
                                               data-rule-required='true' placeholder="提货地"
                                               data-rule-required='true'
                                               name="deliverPlace">
                                        <!--<div class="select_multi" style="width:95%;">-->
                                        <!--<div class="panel panel-default" style="margin: 0;overflow-x: hidden;">-->
                                        <!--<div class="panel-heading">-->
                                        <!--<h3 class="panel-title">选择提货地</h3>-->
                                        <!--</div>-->
                                        <!--<div class="panel-body">-->
                                        <!--<div class="stores"-->
                                        <!--style=" white-space: normal;width:250px;"></div>-->
                                        <!--<hr/>-->
                                        <!--<div class="stores_area">-->
                                        <!--</div>-->
                                        <!--</div>-->
                                        <!--</div>-->
                                        <!--</div>-->
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <button type="submit" data-loading-text="提交中..."
                                                class="btn btn-danger btn-create-lading-bill">提交
                                        </button>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="col-sm-7" style="padding-right:0">
                    <div class="panel panel-warning">
                        <div class="panel-heading">发货订单</div>
                        <div class="table-responsive orders-list-to-send" style="min-height: 448px;">
                            <table class="table table-vstriped ">
                                <tr>
                                    <td><i class="fa fa-angle-double-down" aria-hidden="true"></i></td>
                                    <td>订单编号</td>
                                    <td width="55px">可发货</td>
                                    <td>下单时间</td>
                                    <td>批号</td>
                                    <td>本次发货</td>
                                </tr>
                                <tbody class="selected-order">
                                <tr>
                                </tr>
                                </tbody>
                            </table>
                            <table class="table table-vstriped">
                                <tbody class="combine-orders"></tbody>
                            </table>
                            <table class="table table-vstriped">
                                <tbody class="">
                                <tr>
                                    <td class="text-right" style="text-align:right;" colspan="2">本次发货数量：<b
                                            class="thisTimeNumber-label text-danger">0</b><span class="unit"></span>
                                    </td>
                                    <td class="text-right" style="text-align:right;" colspan="3">合计可发货数量：<b
                                            class="thisTimeTotal-label text-danger">0</b><span class="unit"></span>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                            <a href="javascript:void(0);" style="margin: 0 auto;display: block;width: 88px;"
                               class="btn btn-info load-orders" data-loading-text="加载中..."><i
                                    class="fa fa-angle-double-down" aria-hidden="true"></i> 拼单发货</a>

                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</script>
<title>订单管理-后台管理系统</title>
</head>
<body class="sub-body" style="background: #FFF;">
<%-include('../../common/top-nav.html') %>
<%- include('../../common/page-title.html',{navs:[
{label:'首页',url:'../../main.html'},
{label:'销售管理',url:'javascript:void(0)'},
{label:'订单管理',url:'javascript:void(0)'},
]}) %>
<div class="content">
    <div class=" ">
        <div class="panel-body">
            <div class="toolbar">
                <div class="btn-group form-inline" role="group" aria-label="...">
                    <!--<select name="payStatus" class="form-control data-select">-->
                        <!--<option value="">全部付款状态</option>-->
                        <!--<option value="0">未付款</option>-->
                        <!--<option value="1">已付款</option>-->
                    <!--</select>-->
                    <!--<select name="deliverStatus" class="form-control data-select" style="">-->
                        <!--<option value="">全部发货状态</option>-->
                        <!--<option value="0">未发货</option>-->
                        <!--<option value="2">已收货</option>-->
                        <!--<option value="1">已发货</option>-->
                    <!--</select>-->
                    <input type="text" class="form-control search" name="no"
                           style="display: inline-block;width: auto;" placeholder="申请单号">
                    <%-include('../../common/date-range.html')%>
                </div>
                <button class="btn btn-primary search-btn" style=""
                        data-loading-text="查询中..."
                        type="button">查询
                </button>
                <!--<button class="btn btn-primary search-export" style="" data-loading-text="导出中..."-->
                        <!--type="button">导出-->
                <!--</button>-->
            </div>
            <div class="modal fade order-check">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button
                                    type="button" class="close"
                                    data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                            <h5 class="modal-title">审核订单</h5>
                        </div>
                        <div class="modal-body">
                            <div class='form-horizontal'>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">拒绝原因：</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control hp-refuse">
                                    </div>
                                    <div class="col-sm-3 error-container">(拒绝时必填)</div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-primary btn-lg" data-ok="modal">通过</button>
                            <button type="button" class="btn btn-danger btn-lg" data-ok="modal">拒绝</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="table-responsive" style="margin-top: 12px;">
                <div class="com-loading">
                    <img src="/admin/imgs/loading/loading.gif" alt="">
                </div>
                <table class="table table-bordered table-hover">
                </table>
            </div>
            <div class="su-pager text-right">
            </div>
        </div>
    </div>
</div>
</body>
<%- include('../../common/script-moment.html') %>
<%- include('../../common/script-handlebars.html') %>
<%- include('../../common/script-common.html') %>
<!-- build:js ../../scripts/product/service-orindex.ba.jsx.js  -->
<script type="text/javascript" src="./service-index.js"></script>
<!-- endbuild -->

</html>